import Vuex from "vuex";
import Vue from "vue";
import state from "./state";
import mutations from "./mutations";
import actions from "./action";
import getters from "./getters";

import User from "./modules/user";
Vue.use(Vuex);
const store = new Vuex.Store({
  state,
  getters,
  actions,
  modules: {
    User
  },
  mutations: {
    ...mutations,
  }
});

export default store;